import Instance from "./instance";

export const URL = {
    ALOGIN: "/api/login",
    ALOGOUT: "/api/logout",
    AGETUSERINFO: "/api/getuserinfo",
};

//login
export const ALogin = data => Instance.post(URL.ALOGIN, data);
//logout
export const ALogout = () => {
    localStorage.removeItem("access_token");
    localStorage.removeItem("uid");
    localStorage.removeItem("userData");
};
//请求用户信息
export const AGetUserInfo = () => Instance.get(URL.AGETUSERINFO);
